package com.mentaleye.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mentaleye.biz.SystemLogBiz;
import com.mentaleye.dal.model.SystemLog;
import com.mentaleye.service.SystemLogService;
import com.mentaleye.util.CommonPage;

@Service
public class SystemLogBizImpl implements SystemLogBiz {

	@Autowired
	private SystemLogService systemLogService;
	
	@Override
	public void getLogListUniqueByMap(CommonPage commonPage) {
		List<SystemLog> logList = this.systemLogService.getLogListUniqueByMap(commonPage.pageToMap());
		commonPage.setPageData(logList);
	}
	
	@Override
	public void getLogListByMap(CommonPage commonPage) {
		List<SystemLog> logList = this.systemLogService.getLogListByMap(commonPage.pageToMap());
		commonPage.setPageData(logList);
	}
}
